package com.vastcom.sigma.admin.model;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Date;

@Entity
public class Coffeeincoming {
    private String incomingid;
    private String incompc;
    private String pm;
    private Date jhrq;
    private String cpxx;
    private Double rksl;
    private String gys;
    private String cgry;
    private String ckczy;
    private String blockchain;

    @Id
    @Column(name = "incomingid")
    public String getIncomingid() {
        return incomingid;
    }

    public void setIncomingid(String incomingid) {
        this.incomingid = incomingid;
    }

    @Basic
    @Column(name = "incompc")
    public String getIncompc() {
        return incompc;
    }

    public void setIncompc(String incompc) {
        this.incompc = incompc;
    }

    @Basic
    @Column(name = "pm")
    public String getPm() {
        return pm;
    }

    public void setPm(String pm) {
        this.pm = pm;
    }

    @Basic
    @Column(name = "jhrq")
    public Date getJhrq() {
        return jhrq;
    }

    public void setJhrq(Date jhrq) {
        this.jhrq = jhrq;
    }

    @Basic
    @Column(name = "cpxx")
    public String getCpxx() {
        return cpxx;
    }

    public void setCpxx(String cpxx) {
        this.cpxx = cpxx;
    }

    @Basic
    @Column(name = "rksl")
    public Double getRksl() {
        return rksl;
    }

    public void setRksl(Double rksl) {
        this.rksl = rksl;
    }

    @Basic
    @Column(name = "gys")
    public String getGys() {
        return gys;
    }

    public void setGys(String gys) {
        this.gys = gys;
    }

    @Basic
    @Column(name = "cgry")
    public String getCgry() {
        return cgry;
    }

    public void setCgry(String cgry) {
        this.cgry = cgry;
    }

    @Basic
    @Column(name = "ckczy")
    public String getCkczy() {
        return ckczy;
    }

    public void setCkczy(String ckczy) {
        this.ckczy = ckczy;
    }

    @Basic
    @Column(name = "blockchain")
    public String getBlockchain() {
        return blockchain;
    }

    public void setBlockchain(String blockchain) {
        this.blockchain = blockchain;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Coffeeincoming that = (Coffeeincoming) o;

        if (incomingid != null ? !incomingid.equals(that.incomingid) : that.incomingid != null) return false;
        if (incompc != null ? !incompc.equals(that.incompc) : that.incompc != null) return false;
        if (pm != null ? !pm.equals(that.pm) : that.pm != null) return false;
        if (jhrq != null ? !jhrq.equals(that.jhrq) : that.jhrq != null) return false;
        if (cpxx != null ? !cpxx.equals(that.cpxx) : that.cpxx != null) return false;
        if (rksl != null ? !rksl.equals(that.rksl) : that.rksl != null) return false;
        if (gys != null ? !gys.equals(that.gys) : that.gys != null) return false;
        if (cgry != null ? !cgry.equals(that.cgry) : that.cgry != null) return false;
        if (ckczy != null ? !ckczy.equals(that.ckczy) : that.ckczy != null) return false;
        if (blockchain != null ? !blockchain.equals(that.blockchain) : that.blockchain != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = incomingid != null ? incomingid.hashCode() : 0;
        result = 31 * result + (incompc != null ? incompc.hashCode() : 0);
        result = 31 * result + (pm != null ? pm.hashCode() : 0);
        result = 31 * result + (jhrq != null ? jhrq.hashCode() : 0);
        result = 31 * result + (cpxx != null ? cpxx.hashCode() : 0);
        result = 31 * result + (rksl != null ? rksl.hashCode() : 0);
        result = 31 * result + (gys != null ? gys.hashCode() : 0);
        result = 31 * result + (cgry != null ? cgry.hashCode() : 0);
        result = 31 * result + (ckczy != null ? ckczy.hashCode() : 0);
        result = 31 * result + (blockchain != null ? blockchain.hashCode() : 0);
        return result;
    }
}
